package com.campus.merchant.vo.goods;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 商品返回对象
 */
@Data
@ApiModel("商品返回对象")
public class GoodsVO {
    @ApiModelProperty("商品ID")
    private Integer id;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("商品价格")
    private BigDecimal price;

    @ApiModelProperty("原价")
    private BigDecimal originalPrice;

    @ApiModelProperty("商品图片URL")
    private String image;

    @ApiModelProperty("商品描述")
    private String description;

    @ApiModelProperty("打包费")
    private BigDecimal packagingFee;

    @ApiModelProperty("销量")
    private Integer sales;

    @ApiModelProperty("评分")
    private BigDecimal rating;

    @ApiModelProperty("所属分类ID")
    private Integer categoryId;

    @ApiModelProperty("所属商户ID")
    private Integer merchantId;

    @ApiModelProperty("状态：1-上架，0-下架")
    private Integer status;

    @ApiModelProperty("创建时间")
    private String createTime;

    @ApiModelProperty("更新时间")
    private String updateTime;

    @ApiModelProperty("规格组及选项JSON字符串")
    private String specJson;
}